<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class NoteRequest extends BaseFormRequest
{


    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'pid'=>"sometimes|numeric",
            'uid'=>"sometimes|numeric",
            'role'=>"sometimes|numeric",
            'note'=>"required|string",
            'type'=>"sometimes|string",
            'ctime'=>"sometimes",
            'title'=>"required|string",
            'fileList'=>'sometimes|array'
        ];
    }
}
